//
//  ImageUploadTools.h
//  PBShop
//
//  Created by Zyark on 2017/4/24.
//  Copyright © 2017年 Zyark. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol ImageUploadToolsDelegate <NSObject>

@optional
/**上传成功*/
-(void)begin;
-(void)success:(id)responseObject;
-(void)progress:(NSProgress *)uploadProgress;
-(void)failure:(NSError * )error;
@end
typedef void(^UploadSuccessCallBack) (id responseObject);
@interface ImageUploadTools : NSObject
@property(nonatomic,copy) NSString *url;
@property(nonatomic,strong) NSDictionary *params;
@property(nonatomic,copy) NSString *filename;
@property(nonatomic,weak) id<ImageUploadToolsDelegate> delegate;
-(void)alertSelectImage:(UIViewController *)vc;
- (void)uploadImage:(NSString *)url params:(NSDictionary *)params filename:(NSString *)filename;

@end
